<template>
    <div class="form-group">
        <input type="text" class="form-control" :value="username" @input="$emit('input',$event.target.value)" />
    </div>
</template>

<script>
export default {
    name:'NameInput',
     model: {
        prop: "username",
        event: 'input'
        },
        props: {
            username: {
            default: ''
            }
        },
}
</script>